Directory Picker Control 1.0

Thomas C. Goff
http://www.mnsinc.com/tgoff
tgoff@mnsinc.com

About the Author:

	Hello, my name is Tom and I am 22 years old. I am currently pursuing a Computer Science degree at George Mason University, located in Fairfax VA. I have been studying Windows programming for four years and have religiously studied Win32 programming since the release of Windows 95.
All of my Windows knowledge comes from reading books and visiting newsgroups. I’ve read books on programming Windows 95/NT using C, MFC, OWL, and Visual Basic. I have also read books on ActiveX controls, COM, OLE, DDE, and Automation. Nowadays I find that I always have three or four books waiting in the wings.
At Mason, I have studied compilers, computer architecture, data structures, object oriented design, software engineering, Java, C, C++, etc, etc, etc. Last semester I earned a 3.5 GPA and a spot on the dean’s list. I am currently a junior and expect to graduate in May or December of 1998.
I’ve learned FoxPro 2.5, and a little 2.6, programming while working at my current job. I am now trying to make the move to Visual FoxPro 5.0, with a little difficulty. I think I need to read another book. I also administer a small, < 20 computers, LANtastic network. We have a mix of DOS/Win3.x and Windows 95 computers in our office. I also handle all computer hardware upgrades and repairs. This includes installation of new motherboards, hard drives, SCSI devices, you name it.
I am always looking for any kind of job offers. You can contact me at 1-703-368-4071 (please ask for the younger Tom), or you can e-mail me at the above address.

Legal Stuff:

	Although I have tested this control, I DO NOT take any responsibility for any damage caused by this control, any of the included examples, or any other product which makes use of this control. This control is freeware and you are advised to use at your own risk. If I am notified of bugs, or desired features, I will probably release an update, but no guarantees.

What’s Included:

	\DPDlg.ocx	-	ActiveX Control
	\Readme.rtf	-	This Readme file
	\Examples\Vb	- 	A sample program that uses the Directory Picker (written in VB5)
	\Examples\MFC	-	A sample program that uses the Directory Pciker (written in MFC 4.2)
	
Control Properties:

Name	Access Rights	Description	
hWnd	Read/Write	The handle of window which will hold the Browse dialog	
Caption	Read/Write	The string displayed above the tree view control in the Browse dialog	
Folder	Read Only	The display name of the selected folder	
Path	Read Only	The path of the selected folder	
Icon	Read Only	The icon of the selected folder	
Root	Read/Write	The “root” folder of the Browse dialog	
BrowseForComputer	Read/Write	Only returns computers. If the user selects anything other than a computer, the OK button is grayed.	
BrowseForPrinter	Read/Write	Only returns printers. If the user selects anything other than a printer, the OK button is grayed	
DontGoBelowDomain	Read/Write	Does not include network folders below the domain level in the tree view control	
ReturnFSAncestors	Read/Write	Only returns file system ancestors. If the user selects anything other than a file system ancestor, the OK button is grayed	
ReturnOnlyFSDirs	Read/Write	Only returns file system directories. If the user selects folders that are not part of the file system, the OK button is grayed	

Control Methods:

Name	Return Value	Action	
Show	True, if the user selected a folder. False, if there was an error or the user pressed Cancel.	Displays the Browse dialog box